package com.chance.cc.crawler.development.command.publish.eastday;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.eastday.EastdayCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.trigger.domain.eastday.EastdayScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 14:11
 * @Description
 *      东方网
 **/
public class EastdayPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
//        CrawlerJob crawlerJob = EastdayCrawlerScheduleJob.publisheastdayCrawlerScheduleJobInfo();
//        EastdayScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());


//        CrawlerJob crawlerJobNews = EastdayCrawlerScheduleJob.publisheastdayNewsCrawlerScheduleJobInfo();
//        EastdayScheduleTrigger.publishScheduleTriggerInfo(crawlerJobNews.generateCrawlerKey(), crawlerJobNews.generateCrawlerTriggerKey());

        CrawlerJob crawlerJobJz = EastdayCrawlerScheduleJob.publisheastdayJzCrawlerScheduleJobInfo();
        EastdayScheduleTrigger.publishScheduleTriggerInfo(crawlerJobJz.generateCrawlerKey(), crawlerJobJz.generateCrawlerTriggerKey());

//        EastdayCrawlerScript.publishCrawlerNodeScript();
    }
}
